<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>若梦TV，全网品质好单采集平台</title>
	<meta name="keywords" content="若梦、若梦TV、若梦金冠联盟、采集站、淘客、淘宝客、淘客工具、淘客软件、淘客联盟
">
	<meta name="description" content="若梦TV采集站ruomengtv.com，是若梦金冠联盟优质好单采集平台；专注优质商品，严格把控品质，超高转化，提高收益，为淘客提供最好的商品精选采集平台！">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" type="text/css" href="../../lib/css/animate.min.css">
	<link rel="stylesheet" type="text/css" href="../../layui/css/layer.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/jquery.page.min.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/fakeloader.css">
	<link rel="stylesheet" type="text/css" href="../../lib/css/reset.css">
	<link rel="stylesheet" type="text/css" href="../../css/comm.css">
	<link rel="stylesheet" type="text/css" href="../../css/main.css">
	<link rel="stylesheet" type="text/css" href="../../css/data_main.css">

</head>
<body>
	<!-- 头部 -->
	<header>
		<div class="head">
			<div class="head-left left">
				<a href="index.html" title="若梦TV--首页"><img src="../../img/logo.png" alt=""></a>
				<div class="experience">
					<div class="left">体验</div>
					<div class="right"><a href="http://www.taobao218.com" title="天天赚发单助手" target="_blank">天天赚发单助手</a></div>
				</div>
			</div>
			<div class="head-right right">
				<div class="left login btn" onclick="location.href='../login/login.html';">登录</div>
				<div class="right register btn" onclick="location.href='../login/regsiter.html';">注册</div>
			</div>
			<!--登录后显示区域-->
			<div class="head-right2 right hide">
				<img class="left releaseIcon" src="../../img/head_icon1.png" title="发布" alt="">
				<img class="left informIcon" src="../../img/head_icon2.png" title="未读消息" alt="">
				<div class="left informNum" title="未读消息">0</div>
				<div class="left headOuter" title="个人中心">
					<img class="headPic" src="../../img/default_head.png" alt="">
				</div>
			</div>
			<!--登录后显示区域结束-->
		</div>
	</header>
	<!-- banner -->
	<div class="banner">
		<h2>若梦TV，全网品质好单采集平台</h2>
		<div class="search-wrap">
			<div class="left">
			<input type="text" placeholder="输入关键词或商品链接">
			<!--搜索历史-->
				<div class="searchHistory">
					<!-- <div class="historyItem">1</div>
					<div class="historyItem">2</div>
					<div class="historyItem">什么事没事没事</div>
					<div class="historyItem">耐克</div>
					<div class="historyItem">鞋子啊</div> -->
				</div>
				<!--搜索历史结束-->
			</div>
			<div class="right">搜索</div>
		</div>
	</div>

	<!-- 导航条 -->
	<div class="banner_dh" style="width:100%;height:50px;background-color:#ffffff;margin-top:24px;border-bottom:2px solid #03a9f4;text-align:center;">
		<div style="margin:0 auto;width:1180px;">

			<div class="dh_word"><a href="index.html"><p>综合</p></a></div>
			<div class="dh_word"><a href="popular_rank.html"><p>人气排行</p></a></div>
			<div class="dh_word"><a href="new_in_real_time.html"><p>实时上新</p></a></div>
			<div class="dh_word"><a href="sale_rank.html"><p>销量榜</p></a></div>
			<!-- 	<div class="dh_word"><a href="coupon_rank.html"><p>领卷榜</p></a></div> -->
			<div class="dh_word"><a href="quality_goods.html"><p>品质好货</p></a></div>
			<div class="dh_word"><a href="poly_birds.html"><p>聚+淘</p></a></div>
			<div class="dh_word"><a href="all.html"><p>热门采集群</p></a></div>
			<div class="dh_word_selected"><a href="baokuan.html"><p>爆款单</p></a></div>
		</div>
	</div>

	<!-- 主体内容 -->
	<div class="wrap">

		<div class="group">
			<div class="left group-t">热群</div>
			<div class="left group-list">
				<ul>
					<li class="active">若梦</li>
					<li>天骏</li>
					<li>天神盟</li>
					<li>避风港</li>
					<li>奇生虫</li>
					<li>组团推</li>
					<li>早安</li>
					<li>刘坚持</li>
				</ul>
				<div class="clearfix"></div>
			</div>
		</div>

		<!--<div class="collect-choose" style="margin-top: 10px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;">
			<div class="collect-time" style=" margin:0 auto;">

<span class="time-backward" type="backward">
<img src="../../img/left.png">
</span>
				<span>
<div class="layui-inline">
  <input id="LAY_demorange_s" class="layui-input" placeholder="自定义日期格式" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})">
</div>
</span>
				<span class="time-forward" type="forward">

<img src="../../img/right.png"></span>
			</div>
		</div>-->
		<!--时间选择区域-->
		<div class="timeSelectArea">
			<div class="btn back" title="前一天" ><i class="iconfont">&#xe602;</i></div>
			<div class="layui-inline">
				<input class="layui-input" placeholder="" >
			</div>
			<div class="btn forward" title="后一天" ><i class="iconfont">&#xe601;</i></div>
		</div>
		<!--时间选择区域结束-->

		<div class="goods-sorts goods-time-sorts">
			<ul>
				<li class="active" sort='1'>综合</li>
				<li sort='2'>最新</li>
				<li sort='3'>领券</li>
			</ul>
			<div class="clearfix"></div>
		</div>

		<div class="goods-wrap">

		</div>
		<!-- 分页 -->
		<div class="page-wrap">
			<div id="page"></div>
		</div>
	</div>
	<!-- 加载层 -->
	<div class="fakeloader"></div>
	<!-- 复制文案 -->
	<div class="copy-data"></div>
	<!-- 返回顶部 -->
	<div class="scrollTop">
		<div class="scrollTop-top">
		</div>
		<div class="scrollTop-bottom">
			返回顶部
		</div>
	</div>
	
	<!--我的选品-->
	<div class="mySelection">
		<div class="left leftArea">
			<div class="btn shrinkBtn"><i class="iconfont">&#xe64e;</i>我的选品 <span class="selectionNum">0</span></div>
		</div>
		<div class="right rightArea">
			<div class="itemOuter">
				<div class="no-data2">
					<img src="../../img/no_data.png" alt="">
					<div>这里空空如也~</div>
				</div>
			</div>
			<div class="deleteBtn">删除</div>
		</div>
	</div>
	<!--我的选品结束-->

	<!--遮罩层-->
	<div class="grey hide" onclick="popHide();"></div>
	<!--遮罩层结束-->

	<!--提交新单弹窗-->
	<div class="popUp submitNewPop hide">
		<div class="titleArea gradient">
			<div class="spaceBox"><!--为防止垂直间距合并--></div>
			<div class="title">提交新单</div>
		</div>
		<div class="contentArea">
			<div class="outer headOuter">
				<label>商品图</label>
				<div class="uploadOuter">
					<img id="goodsIcon" src="../../img/head_upload.png" alt="">
					<input id="uploadGoods" type="file" class="addimgIpt" name="file" accept="image/gif,image/jpeg,image/png"/>
				</div>
				<span class="tips">尺寸大小为400*400像素</span>
			</div>
			<div class="outer headOuter">
				<label>文案图</label>
				<div class="uploadOuter">
					<img id="wenanIcon" src="../../img/head_upload.png" alt="">
					<input id="uploadWenan" type="file" class="addimgIpt" name="file" accept="image/gif,image/jpeg,image/png"/>
				</div>
				<span class="tips">尺寸大小为800*1200像素</span>
			</div>
			<div class="outer">
				<label for="title">商品标题</label>
				<input id="title" type="text" placeholder="请填写商品标题">
			</div>
			<div class="outer">
				<label for="originalPrice">原价</label>
				<input id="originalPrice" type="number" placeholder="请填写原价">
				<span class="unit">元</span>
			</div>
			<div class="outer">
				<label for="presenPrice">券后价</label>
				<input id="presenPrice" type="number" placeholder="请填写券后价">
				<span class="unit">元</span>
			</div>
			<div class="outer">
				<label for="couponUrl">优惠券</label>
				<textarea name="" id="couponUrl" placeholder="请填写优惠券链接"></textarea>
			</div>
			<div class="outer">
				<label for="productUrl">商品链接</label>
				<input id="productUrl" type="text" placeholder="请填写商品链接">
			</div>
			<div class="outer">
				<label for="copywriting">文案</label>
				<textarea name="" id="copywriting" placeholder="请填写文案"></textarea>
			</div>
			<div class="outer">
				<label for="brokerage">佣金</label>
				<input id="brokerage" type="number" placeholder="请填写佣金">
				<span class="unit">%</span>
			</div>
			<div class="outer brokerageType">
				<label>佣金类型</label>
				<div class="sorts">
					<div class="btn sort active" data-sort="1">通用</div>
					<div class="btn sort" data-sort="2">定向</div>
					<div class="btn sort" data-sort="3">鹊桥</div>
					<div class="btn sort" data-sort="4">营销</div>
				</div>
			</div>
			<div class="outer activeSync">
				<label>活动同步</label>
				<div class="sorts syncSort">
					<div class="btn sort active" data-sort="1">是</div>
					<div class="btn sort" data-sort="0">否</div>
				</div>
			</div>
			<div class="outer activeTypeOuter">
				<label>活动类型</label>
				<div class="sorts">
					<div class="btn sort active" data-sort="1">聚划算</div>
					<div class="btn sort" data-sort="2">淘抢购</div>
				</div>
			</div>
		</div>
		<div class="btnArea">
			<div class="btn gradient">确定</div>
		</div>
	</div>
	<!--提交新单弹窗结束-->
</body>
<script type="text/javascript" src="Images/jquery.js"></script>
<script type="text/javascript" src="Images/ThreeWebGL.js"></script>
<script type="text/javascript" src="Images/ThreeExtras.js"></script>
<script type="text/javascript" src="Images/Detector.js"></script>
<script type="text/javascript" src="Images/RequestAnimationFrame.js"></script>
<script id="vs" type="x-shader/x-vertex">
	varying vec2 vUv;
	void main() {
		vUv = uv;
		gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
	}




</script>
<script id="fs" type="x-shader/x-fragment">
	uniform sampler2D map;
	uniform vec3 fogColor;
	uniform float fogNear;
	uniform float fogFar;
	varying vec2 vUv;
	void main() {
		float depth = gl_FragCoord.z / gl_FragCoord.w;
		float fogFactor = smoothstep( fogNear, fogFar, depth );
		gl_FragColor = texture2D( map, vUv );
		gl_FragColor.w *= pow( gl_FragCoord.z, 10.0 );
		gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );
	}




</script>
<!-- <script type="text/javascript" src="Images/cloud.js"></script> -->
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.page.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/clipboard.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/layui.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/lay/dest/layui.all.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../layui/layer.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/fakeloader.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../js/main.js"></script>
<script type="text/javascript" charset="UTF-8" src="../../lib/js/jquery.hDialog.min.js"></script>
<script type="text/javascript">

$( function()
{
	//设置日期默认值
	var firstLoadDate = format( new Date(), 'yyyy-MM-dd' );
	$( ".layui-input" ).val( firstLoadDate );

	window.p = 1;
	window.flag = true;
	window.info = {
		pageSize: p,
		type: 8,
		goodSort: 0,
		date: firstLoadDate
	};
	get_goods_list( info );

	$( document ).on( 'click', '.goods-time-sorts li', function()
	{ // 切换类别排序方式
		$( '.goods-time-sorts li' ).removeClass( 'active' );
		$( this ).addClass( 'active' );
		info.pageSize = 1;

		if( !isNull( $( this ).attr( 'sort' ) ) )
		{
			info.goodTimeSort = $( this ).attr( 'sort' );
		}
		get_goods_list( info );
	} );
	
	//根据时间查询-直接选择
	$(document).on("click",".layui-input",function()
	{
		layui.laydate( {
			elem: this,
			format: 'YYYY-MM-DD',
			choose: function( dates )
			{ //选择好日期的回调
				var goodSort = $( '.goods-time-sorts li.active' ).attr("sort");
				var info = {
						pageSize: 1,
						type: 8,
						goodSort: goodSort,
						date: dates
					};
				get_goods_list( info );
			}
		} );
	})
	
	//根据时间查询-前一天
	$( ".timeSelectArea .back" ).click( function()
	{
		var newDate = previousDay();
		var goodSort = $( '.goods-time-sorts li.active' ).attr("sort");
		var info = {
			pageSize: 1,
			type: 8,
			goodSort: goodSort,
			date: newDate
		};
		get_goods_list( info );
	} );
	//根据时间查询-后一天
	$( ".timeSelectArea .forward" ).click( function()
	{
		var newDate = nextDay();
		var goodSort = $( '.goods-time-sorts li.active' ).attr("sort");
		var info = {
			pageSize: 1,
			type: 8,
			goodSort: goodSort,
			date: newDate
		};
		get_goods_list( info );
	} );
	
} );

//获取商品
function get_goods_list( info, url )
{
	$.ajax( {
		url: '/gmk/gatherShow/baokuan',
		type: 'post',
		data: info,
		beforeSend: function()
		{
			loading( "rgba(0,0,0,0.66)", "spinner1" );
		},
		complete: function()
		{
			loading_success();
		},
		success: function( a )
		{
			console.log(JSON.stringify(a));
			if( a.status == 'SUCESS' )
			{
				if( !isNull( a.data.counts ) && (info.type != 3 && info.type != 4) )
				{
					$( '.goods-total span' ).html( a.data.counts )
				}
				if( !isNull( a.data.list ) )
				{

					if( a.data.list.length > 0 )
					{
						var s = '';
						$( a.data.list ).each( function( i, e )
						{
							console.log( e );
							$( '.page-wrap' ).show();
							if( e.shopType == 2 )
							{  //   天猫
								var b = '../../img/tianmao.png';
								var h = "https://detail.tmall.com/item.htm?id=" + e.originId;
							}
							else
							{  //  淘宝
								var b = '../../img/taobao.png';
								var h = "https://item.taobao.com/item.htm?id=" + e.originId;
							}
							var k = "http://shop.m.taobao.com/shop/coupon.htm?seller_id=" + e.sellerId + "&activity_id=" + e.couponId +
											"&v=0";
							if( e.commissionType == 2 )
							{
								var t = '定向'
							}
							else
								if( e.commissionType == 3 )
								{
									var t = '鹊桥'
								}
								else
								{
									var t = '通用'
								}
							if( e.goodsName.length > 16 )
							{
								e.goodsName = e.goodsName.substr( 0, 16 ) + '..'
							}
							if( isNull( e.voucherPrice ) )
							{
								var x = '正在统计';
							}
							else
							{
								var x = e.voucherPrice;
							}
							/*  if (e.state == 0) { //  正常
							 var over = '';
							 }else{ //  过期
							 var over = '<div class="is-over"><div class="is-over-inner">已抢完</div></div>';
							 } */
							var over = '';
							var order = (info.pageSize - 1) * 40 + i + 1;
							if( e.goodType == 1 )
							{ // 聚划算
								var goodsType = '<img src="../../img/jhs.png" alt="">'
							}
							else
								if( e.goodType == 2 )
								{ // 淘抢购
									var goodsType = '<img src="../../img/tqg.png" alt="">'
								}
								else
								{
									var goodsType = ''
								}
							if( isNull( e.currentVoucherCount ) )
							{
								e.nowNumbers = '已领券量正在统计';
								e.surplusCoupon = '已领券量正在统计'
							}
							else
							{
								e.surplusCoupon = '已领券' + e.currentVoucherCount + '张（剩' + e.moreVoucherNum + '）张'
								e.nowNumbers = '已领券' + e.currentVoucherCount + '张';
							}
							if( isNull( e.count ) )
							{
								e.count = '正在统计'
							}
							if( e.goodType == '1' )
							{ //  聚划算
								e.goodType = '../../img/poly_birds_poly_logo.png'
							}
							else
							{
								e.goodType = '../../img/poly_birds_birds_logo.png'
							}

							switch( info.type )
							{

								case 8 : //  综合
									s += '<div class="item">' +
											 '<div class="item-img-wrap">' +
											 over +
											 '<div class="item-logo">' +
											 'TOP <br />' +
											 formatSort( order ) +
											 '</div>' +
											 '<div class="item-img">' +
											 '<a href="' + h + '" title="' + e.goodsName + '" target="_blank"><img class="scrollLoading" src="' + e.commodityImg + '"></a>' +
											 '</div>' +
											 '<div class="copy-btn"  copy-data=\'<img src="' + e.image2 + '" >' + e.content + '\' data-clipboard-target=".copy-data">' +
											 '复制文案' +
											 '</div>' +
											 '</div>' +
											 ' <h1> <a href="' + h + '" title="' + e.goodsName + '" target="_blank">' + e.goodsName + '</a></h1>' +
											 '<div class="coupon">' +
											 '<div class="left">' +
											 '<h2>￥<span style="color:#03a9f4">' + x + '</span></h2>' +
											 '<h3>券后价</h3>' +
											 '</div>' +
											 '<div class="left">' +
											 '<h2>￥<span>' + e.voucherMoney + '</span></h2>' +
											 '<h3>优惠券</h3>' +
											 '</div>' +
											 '<div class="left last">' +
											 '<h2>' + e.commissionRate + '<span>%</span></h2>' +
											 '<h3>' + t + '</h3>' +
											 '</div>' +
											 '<div class="clearfix"></div>' +
											 '</div>' +
											 ' <div class="coupon-btn btn">' +
											 '<a href="' + k + '" target="_blank">' + e.nowNumbers + '</a>' +
											 '</div>' +
											 '<h4>' + e.createdTime + '&nbsp;&nbsp;&nbsp;发布</h4>' +
											 ' <div class="item-more">' +
											 '<div class="left">' +
											 /* '销量<span>'+e.effectSales+'</span>' + */
											 '</div>' +
											 '<div class="right">' +
											 goodsType +
											 '<img src="' + b + '" alt="">' +
											 '</div>' +
											 '<div class="clearfix"></div>' +
											 ' </div>' +
											 '</div>	';
									break;

							}

						} );
						s += '<div class="clearfix"></div>';
						$( '.goods-wrap' ).html( s );
						imgLazyLoad();
						copy_int();
						if( flag && info.type != 3 && info.type != 4 )
						{
							$( "#page" ).Page( {
								totalPages: a.data.pageCount,//分页总数
								liNums: 7,//分页的数字按钮数(建议取奇数)
								current: info.pageSize, //当前页
								activeClass: 'activP', //active 类样式定义
								callBack: function( page )
								{
									$( 'body,html' ).animate( { scrollTop: '520px' }, 500 );
									flag = false;
									info.pageSize = page;
									get_goods_list( info );
								}
							} );
						}
					}
					else
					{
						var s = '<div class="no-data">' +
										'<img src="../../img/no_data.png" alt="">' +
										'什么都没找到,怪我咯~' +
										'<div>';
						$( '.goods-wrap' ).html( s );
					}
				}
				else
				{
					var s = '<div class="no-data">' +
									'<img src="../../img/no_data.png" alt="">' +
									'什么都没找到,怪我咯~' +
									'<div>';
					$( '.goods-wrap' ).html( s );
				}
			}
			else
			{
				var s = '<div class="no-data">' +
								'<img src="../../img/no_data.png" alt="">' +
								'什么都没找到,怪我咯~' +
								'<div>';
				$( '.goods-wrap' ).html( s );
			}
		},
		error: function()
		{
			$.dialog( 'alert', '错误', '服务器走丢了', 1500 )
		}
	} )
}


</script>
</html>